/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package applicationclient1;

import hu.intersoft.sandbox.ejb.entity.News;
import hu.intersoft.sandbox.ejb.logic.SandboxManagerRemote;
import java.util.List;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingException;

/**
 *
 * @author ntb
 */
public class Main {


    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        try {
            Context ctx = new InitialContext();
            SandboxManagerRemote sandboxMgr = (SandboxManagerRemote) ctx.lookup("SandboxManager/remote");
            List<News> news = sandboxMgr.getNewsEntities();
        } catch (NamingException ex) {
            Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
        }
    }

}
